package com.wenwu.service;

import com.wenwu.common.bean.RelicsEntity;
import com.wenwu.common.exception.RelicsException;
import com.wenwu.common.page.PaginationVO;

/**
 * 其他实物资料
 * @author Yaphet
 *
 */
public interface OtherEntityService {

	/**
	 * 添加，如果主键存在则修改
	 * @param relicsEntity
	 * @return
	 */
	String addObj(RelicsEntity relicsEntity) throws RelicsException;
	
	/**
	 * 根据主键查询
	 * @param key
	 * @return
	 */
	RelicsEntity selectBySelftKey(Integer key)throws RelicsException;

	/**
	 * 批量删除 key之间用“，”分割
	 * @param keys
	 * @return
	 * @throws RelicsException
	 */
	String deleteBykeys(String keys) throws RelicsException;
	
	/**
	 * 条件查询
	 * @param relicsEntity
	 * @param pageVo
	 * @return
	 * @throws RelicsException
	 */
	PaginationVO selectByCondition(RelicsEntity relicsEntity,
			PaginationVO pageVo) throws RelicsException;
	
}
